package com.gzkemays.auth.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
@RequestMapping("security")
public class SecurityController {
  @GetMapping("getUserInfo")
  @ResponseBody
  public Principal getUserInfo(Principal principal) {
    return principal;
  }
}
